import request from '@/utils/request'

// 列表（分页）
export function pageList(query) {
  return request({
    url: '/system/wxUser/pageList',
    method: 'get',
    loading: true,
    params: query
  })
}

// 密码重置
export function pwdReset(id, password) {
  const data = {
    id,
    password
  }
  return request({
    url: '/system/wxUser/pwdReset',
    method: 'put',
    data: data
  })
}

// 禁用/启动
export function changeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/system/wxUser/changeStatus',
    method: 'put',
    loading: true,
    data: data
  })
}
